package day04;

import java.util.Scanner;
//命令解析程序
public class CommandBySwich {
    public static void main(String[] args) {
        /*
        Scanner scan = new Scanner(System.in);
        System.out.println("请选择功能:1.存款 2.取款 3.转账 4.退卡");
        int command = scan.nextInt();
        switch (command){

            case 1:
                System.out.println("存款");
            break;
            case 2:
                System.out.println("取款");
            break;
            case 3:
                System.out.println("转账");
            break;
            case 4:
                System.out.println("退卡");
                break;
            default:  //*可以放在任何位置,当不是放在最后面需要额外加上一个break;
                System.out.println("输入错误,请重新输入:");
        }

         */
                
            }

        }
